From: Siegfried-Angel Gevatter Pujals Date: Sun, 2 Aug 2009 18:06:32 +0000 (+0200) Subject: Fix the amount of fitting elements calculation in the OverflowList X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11173 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0b801a0d2dcecb77334433a604a26f1f202d10b9;p=gnome-shell.git Fix the amount of fitting elements calculation in the OverflowList Before this in certain conditions (depending on the available height) two items could be drawn in the same position. Bug #590278. --- diff --git a/src/shell-overflow-list.c b/src/shell-overflow-list.c index 8565a33c0..77da1ad66 100644 --- a/src/shell-overflow-list.c +++ b/src/shell-overflow-list.c @@ -147,6 +147,9 @@ shell_overflow_list_allocate (ClutterActor *actor, ClutterActor *actor = CLUTTER_ACTOR (iter->data); ClutterActorBox child_box; + if (iter != children) + curheight += priv->spacing; + if ((curheight + priv->item_height) > avail_height) { overflow = TRUE; @@ -163,8 +166,6 @@ shell_overflow_list_allocate (ClutterActor *actor, clutter_actor_allocate (actor, &child_box, flags); curheight += priv->item_height; - if (iter != children) - curheight += priv->spacing; } priv->items_per_page = n_fits;